<? //PRODUCT_view.php;
$msg="";
if(isset($_GET["msg"]))
{
	$msg = $_GET["msg"];
}
include("PRODUCT_session.php");
$find_class = new SessionPRODUCT();
$datas = $find_class->findall();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PRODUCT</title>
<link href="css/globalcss.css" rel="stylesheet" type="text/css">
<link href="css/defaulttheme.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="defaulttheme"><table width="90%" cellspacing="0" cellpadding="0" border="0" class="gridTable">
    <tbody><tr>
        <td>
            <table cellspacing="0" cellpadding="0" border="0" class="gridHeader">
                <tbody><tr>
                    <td nowrap="" class="gridHeaderBGLeft"> </td>
                    <td colspan="4" class="gridHeaderBG">
                        <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                            <tbody><tr>
                                <td valign="baseline"><span class="gridHeaderText">
                                PRODUCT
                                </span></td>
                            </tr>
                        </tbody></table>
                    </td>
                    <td nowrap="" class="gridHeaderBGRight"> </td>
                </tr>
            </tbody></table>
            <table cellspacing="0" cellpadding="0" border="0" class="gridToolBar">
                <tbody><tr>
                    <td colspan="4">
                        <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                            <tbody><tr>
                                <td valign="baseline">
                                <?=$msg;?>
                                                                </td>
                                <td align="right">
<a class="gridToolBarLink" title="Add New Record" href="PRODUCT_add.php"><img border="0" src="./images/defaultbutton/add.gif"></a>                             
		</td>
                            </tr>
                        </tbody></table>
                    </td>
                </tr>
            </tbody></table>
            <table cellspacing="0" cellpadding="0" border="0" class="gridMain">
                <tbody><tr> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           ProductID
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           SKU
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           SupplierProductID
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           ProductName
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           ProductDescription
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           SupplierID
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           CategoryID
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           QuantityPerUnit
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           UnitSize
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           UnitPrice
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           MSRP
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           AvailableSIze
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           AvailableColors
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           SizeID
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           ColorID
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           Discount
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           UnitWeight
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           UnitInStock
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           UnitsOnOrder
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           ReorderLevel
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           ProductAvailable
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           DiscountAvailable
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           CurrentOrder
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           Picture
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           Ranking
                        </div>
                    </td> <td nowrap="" class="gridColumn">
                        <div class="gridColumnText">
                           Note
                        </div>
                    </td>
                    <td width="40px" nowrap="" class="gridColumn">
                    </td>
                    <td width="40px" nowrap="" class="gridColumn">
                    </td>
<? foreach($datas as $data)
{
	
	?>                  
                </tr>
<tr class="gridRow"><td align="right"><?=$data["ProductID"];?></td><td align="right"><?=$data["SKU"];?></td><td align="right"><?=$data["SupplierProductID"];?></td><td align="right"><?=$data["ProductName"];?></td><td align="right"><?=$data["ProductDescription"];?></td><td align="right"><?=$data["SupplierID"];?></td><td align="right"><?=$data["CategoryID"];?></td><td align="right"><?=$data["QuantityPerUnit"];?></td><td align="right"><?=$data["UnitSize"];?></td><td align="right"><?=$data["UnitPrice"];?></td><td align="right"><?=$data["MSRP"];?></td><td align="right"><?=$data["AvailableSIze"];?></td><td align="right"><?=$data["AvailableColors"];?></td><td align="right"><?=$data["SizeID"];?></td><td align="right"><?=$data["ColorID"];?></td><td align="right"><?=$data["Discount"];?></td><td align="right"><?=$data["UnitWeight"];?></td><td align="right"><?=$data["UnitInStock"];?></td><td align="right"><?=$data["UnitsOnOrder"];?></td><td align="right"><?=$data["ReorderLevel"];?></td><td align="right"><?=$data["ProductAvailable"];?></td><td align="right"><?=$data["DiscountAvailable"];?></td><td align="right"><?=$data["CurrentOrder"];?></td><td align="right"><?=$data["Picture"];?></td><td align="right"><?=$data["Ranking"];?></td><td align="right"><?=$data["Note"];?></td><td align="center"><a class="gridBodyLink" target="_self" title="Edit" href="PRODUCT_edit.php?id=<?=$data["id"];?>"><img border="0" src="./images/defaultbutton/edit.gif"></a></td>
<td align="center"><a class="gridBodyLink" target="_self" title="Delete" href="PRODUCT_delete.php?id=<?=$data["id"];?>"><img border="0" src="./images/defaultbutton/delete.gif"></a></td>
</tr>
<?

}
?>

            </tbody></table>
            <table cellspacing="0" cellpadding="0" border="0" class="gridFooter">
                <tbody><tr>
                    <td nowrap="" class="gridFooterLeft"> </td>
                    <td colspan="4" class="gridFooterBG">

                    </td>
                    <td nowrap="" class="gridFooterRight"> </td>
                </tr>
            </tbody></table>
        </td>
    </tr>
</tbody></table>
</div>
</body>
</html>
